<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <jsp:include page="../../head.jsp"/>
    <title>Title</title>
</head>
<script type="text/javascript">
$(document).ready(function() {
	var code = '<%=request.getParameter("code")%>';
	var url = "../supSrvProvide/selectOffLineSup?code="+code;
    $.ajax({
    	url: url,
    	dataType: 'json',
    	type: "GET",
    	cache:false,
    	success: function(rtn) { 
    		if(rtn!=null && rtn.length>0){
    			var selObj = $('#supSel');
    			for (var i=0;i<rtn.length;i++){
    				selObj.append("<option value='"+rtn[i].id+"'>"+rtn[i].name+"</option>"); 
    			}
    		}
    	}
    });
});
</script>
<body>
	<table width="100%" height="100%" >
		<tr>
			<td width="30%" align="right">第二供应商：</td>
			<td widht="*">
				<select name="supSel" id="supSel" lay-verify="" lay-search>
				</select>     
			</td>
		</tr>
	</table>
</body>
</html>
